-- GENERATED SPELL FOR [Umbrafen Oracle] --


function spell0_18077(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_18077', 3000, 1)
end

function spell1_18077(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18077', 0, 1)
end

function Sorts_18077(pUnit, Event)
local choix_sorts_18077 = math.random(0, 1)
if choix_sorts_18077 == 0 then
pUnit:RegisterEvent('spell0_18077', 1, 1)
end
if choix_sorts_18077 == 1 then
pUnit:RegisterEvent('spell1_18077', 1, 1)
end
end

function mob18077_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18077', math.random(1500, 3000), 1)
end

function mob18077_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18077_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18077_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18077, 1, 'mob18077_Action')
RegisterUnitEvent(18077, 2, 'mob18077_Leave')
RegisterUnitEvent(18077, 3, 'mob18077_Kill')
RegisterUnitEvent(18077, 4, 'mob18077_Die')
